//
//  qiyecaigouxqCollectionViewCell.m
//  BAOASystem
//
//  Created by michael on 2018/3/7.
//  Copyright © 2018年 czd. All rights reserved.
//

#import "qiyecaigouxqCollectionViewCell.h"

@implementation qiyecaigouxqCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
 
 _label = [[UILabel alloc]init];
    _label.frame = CGRectZero;
    _label.numberOfLines = 0;
      [_label setFont:[UIFont systemFontOfSize:16]];
       [self.contentView addSubview:_label];

       _label1 = [[UILabel alloc]init];
    _label1.frame = CGRectZero;
    _label1.textColor = [UIColor colorWithHexString:@"a1a1a1"];
      [_label1 setFont:[UIFont systemFontOfSize:13]];
       [self.contentView addSubview:_label1];
    
         _label2 = [[UILabel alloc]init];
    _label2.frame = CGRectZero;
    _label2.textColor = [UIColor colorWithHexString:@"a1a1a1"];
      [_label2 setFont:[UIFont systemFontOfSize:13]];
       [self.contentView addSubview:_label2];
    
                _label3 = [[UILabel alloc]init];
    _label3.frame = CGRectZero;
    _label3.textColor = [UIColor colorWithHexString:@"a1a1a1"];
      [_label3 setFont:[UIFont systemFontOfSize:13]];
       [self.contentView addSubview:_label3];
    
                 _label4 = [[UILabel alloc]init];
    _label4.frame = CGRectZero;
    _label4.textColor = [UIColor colorWithHexString:@"a1a1a1"];
      [_label4 setFont:[UIFont systemFontOfSize:13]];
       [self.contentView addSubview:_label4];
    

    
            _label1xq = [[UILabel alloc]init];
    _label1xq.frame = CGRectZero;
    _label1xq.textColor = [UIColor colorWithHexString:@"484848"];
      [_label1xq setFont:[UIFont systemFontOfSize:13]];
       [self.contentView addSubview:_label1xq];
    
         _label2xq = [[UILabel alloc]init];
    _label2xq.frame = CGRectZero;
    _label2xq.textColor = [UIColor colorWithHexString:@"484848"];
      [_label2xq setFont:[UIFont systemFontOfSize:13]];
       [self.contentView addSubview:_label2xq];
    
                _label3xq = [[UILabel alloc]init];
    _label3xq.frame = CGRectZero;
    _label3xq.textColor = [UIColor colorWithHexString:@"484848"];
      [_label3xq setFont:[UIFont systemFontOfSize:13]];
       [self.contentView addSubview:_label3xq];
    
                 _label4xq = [[UILabel alloc]init];
    _label4xq.frame = CGRectZero;
    _label4xq.numberOfLines = 0;
    _label4xq.textColor = [UIColor colorWithHexString:@"484848"];
      [_label4xq setFont:[UIFont systemFontOfSize:13]];
       [self.contentView addSubview:_label4xq];
    


}

return self;

}
- (void)layoutSubviews{

[super layoutSubviews];
 _label.frame = CGRectMake(10,0, kScreenWidth/2-20, 40);
   _label1.frame = CGRectMake(0, _label.bottom, 100, 20);
    _label2.frame = CGRectMake(0, _label1.bottom, 100, 20);
    _label3.frame = CGRectMake(0, _label2.bottom, 100, 20);
    _label4.frame = CGRectMake(0, _label3.bottom, 100, 20);
 
       _label1xq.frame = CGRectMake(_label1.right, _label.bottom, kScreenWidth-_label1.width, 20);
    _label2xq.frame = CGRectMake(_label1.right, _label1.bottom, kScreenWidth-_label1.width, 20);
    _label3xq.frame = CGRectMake(_label1.right, _label2.bottom, kScreenWidth-_label1.width, 20);
      _label4xq.frame = CGRectMake(_label1.right, _label3.bottom, kScreenWidth-_label1.width, 20);

      _label.text = _dic[@"title"];
      _label1.text = NSLocalizedString(@"采购信息-类型", nil);
      _label2.text = NSLocalizedString(@"采购信息-创建时间", nil);
      _label3.text = NSLocalizedString(@"采购信息-到期时间", nil);
      _label4.text = NSLocalizedString(@"采购信息-剩余天数", nil);
    
NSDictionary * comdic = _dic;
_label1xq.text =comdic[@"type"];
_label2xq.text =comdic[@"createDate"];
_label3xq.text =[NSString stringWithFormat:@"%@",comdic[@"endDate"]];
_label4xq.text =[NSString stringWithFormat:@"%@",comdic[@"syday"]];
NSDictionary *prodic = _dic[@"dmdcompany"];

}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}



@end
